<?php

namespace common\models\WxPublic;

use Yii;

/**
 * This is the model class for table "wx_public".
 *
 * @property string $id
 * @property string $name
 * @property string $app_id
 * @property string $secret
 * @property string $stop_follow_num 终止关注数
 * @property string $exposure_rate 曝光率
 * @property int $status
 * @property string $total_exposure 累计曝光数
 * @property string $total_follow 累计关注量
 * @property string $exposure_num 曝光次数
 * @property string $created_time
 * @property string $updated_time
 * @property string $menu 微信菜单
 * @property int $is_all_area
 * @property string $reply_msg
 */
class WxPublicBase extends \common\models\CommonModel\CommonModel
{
    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return 'wx_public';
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['name', 'app_id', 'secret'], 'required'],
            [['stop_follow_num', 'exposure_rate', 'status', 'total_exposure', 'total_follow', 'exposure_num', 'is_all_area'], 'integer'],
            [['created_time', 'updated_time'], 'safe'],
            [['menu', 'reply_msg'], 'string'],
            [['name'], 'string', 'max' => 120],
            [['app_id', 'secret'], 'string', 'max' => 50],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'name' => 'Name',
            'app_id' => 'App ID',
            'secret' => 'Secret',
            'stop_follow_num' => 'Stop Follow Num',
            'exposure_rate' => 'Exposure Rate',
            'status' => 'Status',
            'total_exposure' => 'Total Exposure',
            'total_follow' => 'Total Follow',
            'exposure_num' => 'Exposure Num',
            'created_time' => 'Created Time',
            'updated_time' => 'Updated Time',
            'menu' => 'Menu',
            'is_all_area' => 'Is All Area',
            'reply_msg' => 'Reply Msg',
        ];
    }
}
